#include "searcher.hpp"

const std::string input = "./data/output/raw.txt";

int main(){
    Searcher searcher;
    searcher.InitSearcher(input);
    DBG_LOG("InitSearcher success!\n");
    while(true){
        std::string query;
        std::string json;
        NORM_LOG("Please Enter your Query#");
        std::getline(std::cin, query);
        if(query.empty()){
            NORM_LOG("Empty query, please enter something.\n");
            continue;
        }
        // std::cin >> query;
        searcher.Search(query, &json);
        LOG(LOG_LEVEL::NORM, "Json:\n %s", json.c_str());
    }

    return 0;
}